package com.chixing.Homework;

public class Test {
    public static void main(String[] args) {
        Account sa= new Account(5164615616464114L,"Smith",15245984646L,123456,"1524@qq.com",52031.41,0);    //从父类继承方法
        sa.depoist(1000);
        sa.withdraw(60000);

        CreditAccount ca=new CreditAccount(15648946447987L,"John",152486354987L,564789,"5687@qq.com",55386.00,1);
        ca.draw(5000);

        //Bank b=new Bank(15648915257L,"John",152486311117L,5632189,"5687@qq.com",55386.00,1);
        Bank bank=new Bank();

        Account acc1=bank.registAccount(5648946447987L,"John",152486354987L,564789,"5687@qq.com",0.00,1);     //new SavingAccount()
        Account acc2=bank.registAccount(5648946447987L,"John",152486354987L,564789,"5687@qq.com",0.00,1);      ////new CreditAccount()
        Account acc3=bank.registAccount(5648946447987L,"John",152486354987L,564789,"5687@qq.com",0.00,1);
        Account acc4=bank.registAccount(5648946447987L,"John",152486354987L,564789,"5687@qq.com",0.00,1);








    }
}
